const getItemData = () => ({
  id: 1,
  postUrl: '/imgs/index_page/shop-list/hnb.png',
  shopName: '止步面包店',
  branch: '瀚海分店',
  score: 4.7,
  monthlyCount: 7020,
  deliveryTime: '30分钟',
  deliveryDistance: '849m',
  deliveryStratingPrice: '￥20.0',
  deliveryStrategy: '满0.01配送￥0', // 免配送费
  deliveryTags: ['商家配送'],
  comments: ['“红丝绒裸蛋糕”'],
  tops: ['XX区水果热销第2名'],
  activitys: [
    {
      // 满减
      type: 2,
      infos: ['49减3', '59减6', '79减8', '99减18'],
    },
    {
      // 特价
      type: 3,
      tips: '特价4选1',
    },
  ],
  services: [
    {
      tpye: 1,
      label: '坏品包退',
    },
    {
      tpye: 2,
      label: '极速退款',
    },
    {
      tpye: 3,
      label: '果蔬商超红包',
    },
    {
      tpye: 4,
      label: '支持预订',
    },
    {
      tpye: 5,
      label: '开发票',
    },
  ],
})

module.exports = () => {
  const TOTAL = 50
  const result = []
  for (let i = 0; i < TOTAL; i++) {
    const item = getItemData()
    item.id = i
    // item.postUrl = `/imgs/index_page/shop-list/post${i}.png`
    result.push(item)
  }
  return result
}
